<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "project_payment_collection".
 *
 * @property string $id
 * @property string $project_id
 * @property string $mortgage_id
 * @property string $payment_reservation
 * @property string $payment_radical
 * @property string $payment_tax
 * @property string $payment_month
 * @property string $payment_analysis
 * @property string $created_at
 * @property integer $lock_user
 * @property string $lock_timestamp
 */
class ProjectPaymentCollection extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project_payment_collection';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['project_id', 'mortgage_id', 'lock_user'], 'integer'],
            [['mortgage_id', 'payment_reservation', 'payment_radical', 'payment_tax', 'payment_month', 'payment_analysis'], 'required'],
            [['payment_analysis'], 'string'],
            [['created_at'], 'safe'],
            [['payment_reservation', 'payment_radical', 'payment_tax', 'payment_month', 'lock_timestamp'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_id' => 'Project ID',
            'mortgage_id' => 'Mortgage ID',
            'payment_reservation' => 'Payment Reservation',
            'payment_radical' => 'Payment Radical',
            'payment_tax' => 'Payment Tax',
            'payment_month' => 'Payment Month',
            'payment_analysis' => 'Payment Analysis',
            'created_at' => 'Created At',
            'lock_user' => 'Lock User',
            'lock_timestamp' => 'Lock Timestamp',
        ];
    }
}
